package git.soulbgm.controller;

import git.soulbgm.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author SoulBGM
 * @version 1.0
 * @date 2020/7/26 22:45
 */
@RestController
public class DemoController {

    @Autowired
    private DemoService service;

    @RequestMapping("echo/{text}")
    public String echo(@PathVariable String text) {
        return service.echo(text);
    }

}
